import React, { useState, useEffect } from 'react';

export default function(props){
  const [state, setState] = useState()
  const [num, setNum] = useState(props.num)

  useEffect(() => {

  }, [])

  return (
    <div>
        <h1> {props.num == 0 || props.num < 0 ? '活动开始' : props.num} </h1>
        {/* <h1> {props.num } </h1> */}
    </div>
  )
}